﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerAnswer.aspx.cs"
    Inherits="CSM.Views.Wenjuan.CustomerAnswer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>

<script src="../../Js/jquery-1.4.3.min.js" type="text/javascript"></script>
<link href="../../App_Themes/Default_1/jquery-datepicker.css" rel="stylesheet" type="text/css"/>
<script  type="text/javascript" src="../../Js/jquery-datepicker.js"></script> 
    <script src="../../Js/jquery.autocomplete.min.js" type="text/javascript"></script>

    <link href="../../App_Themes/Default_1/jquery.autocomplete.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="../../Js/thickbox.js"></script>

    <link rel="stylesheet" href="../../App_Themes/Default_1/thickbox.css" type="text/css"
        media="screen" />

    <script language="javascript" type="text/javascript">
        //直接由数组获得 
        $(document).ready((function() {
            //由SERVER端获得
        $("#txtUser").autocomplete("GetData.ashx?database=TCsm_JS_User&which=UserName");
        $("#TextBox_BeginTime").datepicker();
        $("#TextBox_EndTime").datepicker();
        }
));
        function ShowThickBox(b, a) {
            var div = a;
            var title = b;
            imgLoader = new Image(); // preload image
            imgLoader.src = tb_pathToImage;
            window.tb_show(title, "#TB_inline?height=300&width=400&inlineId=" + div, "");
        };
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="Panel_Gridlist" runat="server">
        <table style="width: 100%;">
            <tr>
                <td>
            <asp:Label ID="Label_ShopId" runat="server" SkinID="Label" Text="店铺："></asp:Label>
            <asp:DropDownList ID="DropDownList_ShopId" runat="server"></asp:DropDownList>
            <asp:Label ID="Label_CustomerLevel" runat="server" SkinID="Label" Text="客户等级："></asp:Label>
             <asp:DropDownList ID="DropDownList_CustomerLevel" runat="server"></asp:DropDownList>
            <asp:Label ID="Label_CustomerName" runat="server" SkinID="Label" Text="客户姓名："></asp:Label>             
            <asp:TextBox ID="TextBox_CustomerName" runat="server"></asp:TextBox>
             <asp:Label ID="Label_TbId" runat="server" SkinID="Label" Text="淘宝账号："></asp:Label>             
            <asp:TextBox ID="TextBox_TbId" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                                <asp:Label ID="Label_BeginTime" runat="server" SkinID="Label" Text="开始时间"></asp:Label>
                                <asp:TextBox ID="TextBox_BeginTime" runat="server" SkinID="TextBox" 
                                    Width="130px"></asp:TextBox>
                                
                                <asp:Label ID="Label_End" runat="server" SkinID="Label" Text="结束时间"></asp:Label>
                                <asp:TextBox ID="TextBox_EndTime" runat="server" skinid="TextBox" Width="130px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>                  
                    <asp:Button ID="Button_Browse" runat="server" Text="查询" SkinID="Button" OnClick="MyClick" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" OnClick="MyClick"><img src = "../../App_Themes/Default_1/Images/Page_First.gif" class = "Page_First"alt = "首页" /></asp:LinkButton>
                    <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" OnClick="MyClick"><img  src = "../../App_Themes/Default_1/Images/Page_Prev.gif" class = "Page_Prev"  alt = "上页"/></asp:LinkButton>
                    <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" OnClick="MyClick"><img  src = "../../App_Themes/Default_1/Images/Page_Next.gif"  class = "Page_Next"  alt = "下页"/></asp:LinkButton>
                    <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" OnClick="MyClick"><img   src = "../../App_Themes/Default_1/Images/Page_Last.gif" class = "Page_Last" alt = "末页"/></asp:LinkButton>
                    <asp:Label ID="Label_Total" runat="server" SkinID="Label" Text="共："></asp:Label>
                    <asp:Label ID="Label_CurrenPageAndTo" runat="server" SkinID="Label" Text="页，当前第 页，转到"></asp:Label>
                    <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" SkinID="Label" Text="页"></asp:Label>
                    <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                        ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                    <asp:Button ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                        SkinID="Button" Text="GO" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView_Statics" runat="server" AutoGenerateColumns="False" SkinID="gridview">
                        <Columns>
                            <asp:BoundField DataField="ShopID" HeaderText="店铺ID" ReadOnly="True" SortExpression="店铺ID" />
                            <asp:BoundField DataField="MyStatName" HeaderText="问卷名称" ReadOnly="True" SortExpression="问卷名称" />
                            <asp:BoundField DataField="CustomerID" HeaderText="客户ID" ReadOnly="True" SortExpression="客户ID" />
                            <asp:BoundField DataField="ShopID" HeaderText="客户名称" ReadOnly="True" SortExpression="客户名称" />
                            <asp:BoundField DataField="MyTbId" HeaderText="淘宝账号" ReadOnly="True" SortExpression="淘宝账号" />
                            <asp:BoundField DataField="AnswerTime" HeaderText="回访时间" ReadOnly="True" SortExpression="回访时间" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="Button_Edit" runat="server" CommandArgument='<%# Eval("StatID") %>'
                                        OnCommand="Button_Detail_Command" SkinID="Button" Text="查看明细" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:HiddenField ID="EditFlag" runat="server" Value="0" />
    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
     <div id="result" runat="server" visible="false">
    <table style="width: 100%;">
        <tr>
            <td>
                
        <div id="htmldiv" runat="server">
        </div>
      
            </td>
        </tr>
        <tr>
            <td  style = "text-align:center;">
                <asp:Button ID="Button_Cancel" SkinID="Button" runat="server" Text="关闭问卷" OnCommand="Button_Cancel_Command"
            OnClientClick="window.tb_remove();" />
            </td>
        </tr>
    </table>
   </div>
    <div id="MyThickBox">
    </div>
    </form>
</body>
</html>
